import { SYS_LOCAL_DIC } from '@/util/SYS_LOCAL_DIC'

export default {
    // maxHeight: 400,
    index: true,
    border: true,
    expand: false,
    excelBtn:true,
    menuWidth:130,
    title:'系统字典表',//表格的标题
    stripe: false,
    selection: true,
    // customClass: '',自定义弹出框样式
    menuBtn: true,
    // menuWidth: 100,
    menuAlign: 'center',
    align: 'center',
    searchSize: 'small',
    // defaultSort: {
    //   prop: 'name',
    //   order: 'descending'
    // },
    dicData: SYS_LOCAL_DIC,
    column: [{
            label: "字典类型",
            prop: "type",
            tip: '必须输入字典类型',
            width: 130,
            sortable: true,
            search: true,
            solt: true,
            showClomnu: false, 
            placeholder: '请输入字典类型',
            rules: [{
                required: true,
                message: "请输入字典类型",
                trigger: "blur"
            }]
        },
        {
            label: "选项描述",
            prop: "codeText",
            tip: '必须输入选项描述',
            width: 120,
            sortable: true,
            search: false,
            solt: true,
            showClomnu: false, 
            placeholder: '请输入选项描述',
            rules: [{
                required: true,
                message: "请输入选项描述",
                trigger: "blur"
            }]
        },
        {
            label: "选项值",
            prop: "code",
            tip: '必须输入选项值',
            width: 80,
            sortable: false,
            search: false,
            solt: true,
            showClomnu: false, 
            placeholder: '请输入选项值',
            rules: [{
                required: true,
                message: "请输入选项值",
                trigger: "blur"
            }]
        },
        {
            label: "排序",
            prop: "sortNo",
            tip: '必须输入排序',
            width: 60,
            sortable: false,
            search: false,
            solt: true,
            showClomnu: false, 
            placeholder: '请输入排序',
            rules: [{
                required: true,
                message: "请输入排序",
                trigger: "blur"
            }]
        },
        {
            label: "父级类型",
            prop: "parentType",
            type: 'select',
            search: true,
            valueDefault: '',
            dicData: SYS_LOCAL_DIC.DIC_PARENT_TYPE,
            width: 100,
            sortable: false,
            solt: true,
            showClomnu: false, 
            placeholder: '请输入父级类型',
        },
        {
            label: "父级代码",
            prop: "parentCode",
            width: 100,
            sortable: false,
            search: false,
            solt: true,
            showClomnu: false, 
            placeholder: '请输入父级代码',
        },
        {
            label: "修改时间",
            prop: "updateTime",
            span:24,
            row:true,
            type: 'datetimerange',
            startPlaceholder: '开始时间',
            endPlaceholder: '结束时间',
            search: true,
            addDisplay:false,
            editDisplay:false,
            format:'yyyy年MM月dd日HH时mm分ss秒',
        },
        {
            label: "描述",
            prop: "remark",
            sortable: false,
            type: 'textarea',
            maxRow: 4,
            minRow: 4,
            span: 24,
            disabled: false,
            addDisabled: false,
            overHidden: true
        },
    ]
};